package com.yc.cinema.dao;

import com.yc.cinema.bean.User;
import org.springframework.stereotype.Repository;

@Repository
public class UserDao implements BaseDao<User> {
	// 实现代码时, 请修改泛型

    @Override
    public User selectById(Object id) {
        if((int)id == 1){
            return new User(){{
               this.setUsername("张三");
            }};
        } else if((int)id == 2){
            return new User(){{
                this.setUsername("李四");
            }};
        } else {
            return null;
        }
    }
}
